﻿using System;
using System.Collections.Generic;
using System.Text;

namespace _014_第十四章_观察者模式.普通观察者模式
{
    class Boss : Subject
    {
        public string Name { get; set; }
        public string State { get; set; }
        public event MyEventHandler handler;
        public void Notify(string obj)
        {
            handler(obj);
        }
    }

    public delegate void MyEventHandler(string obj);
}
